﻿using System;
using System.Data;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using AnyOffice.Components;
using AnyOffice.DAL;

namespace AnyOffice.general.meeting.manage
{
    public partial class delete : ModulePage
    {

        protected void Page_Load(object sender, EventArgs e)
        {
            string url = (Request.QueryString["refer"] != null) ? Request.QueryString["refer"].ToString() : "meeting_wait.aspx";
            int meetingId = (Request.QueryString["meeting_id"] != null) ? int.Parse(Request.QueryString["meeting_id"]) : 0;
            new MeetingDao().Delete(base.Conn, meetingId, base.User.Identity.Name, true);
            base.CloseConn();
            Response.Redirect(url);
        } 

    }
}
